<?php

class FP_View_Helper_DateFormat
{
  public function dateFormat($pDate, $pFormat){
    if ($pDate){
      //logdebug('FP_View_Helper_DateFormat', "Date=$pDate");
      if (is_object($pDate) && get_class($pDate) == 'Zend_Date')
	return $pDate->toString($pFormat);
      else {
	$date = new Zend_Date($pDate);
	return $date->toString($pFormat);
      }
    }
    return '';
  }
}

?>